package lab02.test35;

import org.omg.CORBA.MARSHAL;

/**
 * Created by 星月 on 2017/11/22.
 */
public class Test {
    public static void main(String[] args) {
        Manager manager=new Manager();
        Salesman salesman=new Salesman();
        Worker worker=new Worker();
        manager.name="张三";
        manager.mothSalary=12000;
        salesman.name="李四";
        salesman.baseSalary=3300;
        salesman.increase=200;
        worker.name="王五";
        worker.dailySalary=100;
        worker.days=30;
        System.out.println("经理"+manager.name+"的工资为"+manager.computeSalary());
        System.out.println("销售员"+salesman.name+"的工资为"+salesman.computeSalary());
        System.out.println("工人"+worker.name+"的工资为"+worker.computeSalary());

    }
}
